<template>
    <div class="overlay" @click="handleClick">
        <div class="content">
            <slot></slot>
        </div>
    </div>
</template>

<script>
export default {
    methods: {
        handleClick() {
            this.$emit('close');
        }
    }
}
</script>

